package patternmining.model.construction;

import patternmining.model.graph.VertexType;

/**Container class.
 * Instances encapsulate the data extracted from a source that describe one term. 
 * @version 1.0, 09.05.2008
 * @author Holger Wiehen
 */
class TermData {
    private String name;
    private VertexType type;
    private int sourceLine;
    private int sourcePos;
    
    
    public TermData(String name, int line, int pos, BPSLTermType type){
        this.name = name;
        this.sourceLine = line;
        this.sourcePos = pos;
        this.type = TypeMatcher.termTypeToVertexType(type);
    }

    public String name() {
        return name;
    }

    public int sourceLine() {
        return sourceLine;
    }

    public int sourcePos() {
        return sourcePos;
    }

    public VertexType type() {
        return type;
    }
    
}
